package com.xiongxiong.yiqing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiongxiong.yiqing.pojo.RecordCard;
import com.xiongxiong.yiqing.pojo.vo.count.CountYinYangPic;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 熊熊很酷
 * @since 2022-12-14
 */
@Mapper
@Repository
public interface RecordCardMapper extends BaseMapper<RecordCard> {

    /**
     * 今日打卡阴阳分析饼图
     * @return java.util.List<com.xiongxiong.yiqing.pojo.vo.count.CountYinYangPic>
     * @author 熊林飞
     * @date: 2023/2/14 13:51
     */
    public List<CountYinYangPic> yinYangPic();

    /**
     * 近n天打卡数量统计
     * @param dayNub 前多少天数据
     * @return java.util.List<com.xiongxiong.yiqing.pojo.vo.count.CountYinYangPic>
     * @author 熊林飞
     * @date: 2023/2/14 14:44
     */
    public List<CountYinYangPic> recordByDayLine(Integer dayNub);

}
